package sensors.virtualSensors;

import static org.junit.Assert.*;

import org.junit.Test;


public class RandomizerTest {

	@Test
	public void UltrasonicDistanceShortTest() {
		Randomizer randomizer = new Randomizer();
		int testRandom = randomizer.ultrasonicRandom(20);
		System.out.println(testRandom);
		assertTrue(testRandom>=20 && testRandom <=25 || testRandom>=15 && testRandom <=20);
	}
	@Test
	public void UltrasonicDistanceLongTest() {
		Randomizer randomizer = new Randomizer();
		int testRandom = randomizer.ultrasonicRandom(30);
		System.out.println(testRandom);
		assertTrue(testRandom>=30 && testRandom<=32|| testRandom>=28 && testRandom<=30);
	}
	@Test
	public void AngleTest() {
		Randomizer randomizer = new Randomizer();
		int testRandom = randomizer.rotateRandom(90);
		System.out.println(testRandom);
	}
	@Test
	public void DistanceTest() {
		Randomizer randomizer = new Randomizer();
		int testRandom = randomizer.travelRandom(40);
		System.out.println(testRandom);
	}
	@Test
	public void InfraredTest() {
		Randomizer randomizer = new Randomizer();
		double testRandom = randomizer.infraredRandom();
		System.out.println(testRandom);
	}
}
